mkimage: fix argument parsing on BSD systems
authorAndreas Bießmann <[email protected]>
Sun, 1 May 2016 01:01:27 +0000 (03:01 +0200)
committerTom Rini <[email protected]>
Mon, 2 May 2016 22:37:09 +0000 (18:37 -0400)
commit7a439cadcf3192eb012a2432ca34670b676c74d2
tree5b726a6a6b43de47e079ae2c9f56422795a86e62
parentf1ab00fb537251b782147830dd6019087fc75fdc
mkimage: fix argument parsing on BSD systems

The getopt(3) optstring '-' is a GNU extension which is not available on BSD
systems like OS X.

Remove this dependency by implementing argument parsing in another way. This
will also change the lately introduced '-b' switch behaviour.

Signed-off-by: Andreas Bießmann <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Makefile
doc/mkimage.1
tools/mkimage.c